-- GENERATED SPELL FOR [Twilight Corrupter] --


function spell0_15625(pUnit, Event) --@Soul Corruption,Self--
pUnit:FullCastSpellOnTarget(25805,pUnit)
pUnit:RegisterEvent('Sorts_15625', 15000, 1)
end

function spell1_15625(pUnit, Event) --@Swell of Souls,n/a--
pUnit:FullCastSpellOnTarget(21307,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15625', 558, 1)
end

function Sorts_15625(pUnit, Event)
local choix_sorts_15625 = math.random(0, 1)
if choix_sorts_15625 == 0 then
pUnit:RegisterEvent('spell0_15625', 1, 1)
end
if choix_sorts_15625 == 1 then
pUnit:RegisterEvent('spell1_15625', 1, 1)
end
end

function mob15625_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15625', math.random(1500, 3000), 1)
end

function mob15625_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15625_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15625_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15625, 1, 'mob15625_Action')
RegisterUnitEvent(15625, 2, 'mob15625_Leave')
RegisterUnitEvent(15625, 3, 'mob15625_Kill')
RegisterUnitEvent(15625, 4, 'mob15625_Die')
